<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
      <div id="app">
        <!-- lazy 敲击回车 or 失去焦点 才进行绑定 -->
        <input type="text" v-model.lazy="msg">
        {{msg}}
        <br>
        <!-- number 正常时候v-model赋值都是字符串 这里会改为数字 -->
        <input type="number" v-model.number="age">
        {{age}}-{{typeof age}}
        <br> 
        <!-- trim 没啥好说的  去空格 -->
        <input type="text" v-model.trim="trimstr">
        {{trimstr}}
      </div>
      <script src="../js/vue.js"></script>
      <script>
          var app=new Vue({
             el:'#app',
             data:{
               msg:'abc',
               age:0,
               trimstr:''
             },
             methods:{}
          });
      </script>
</body>
</html>